﻿<vsx.ui:DialogWindow x:Class="Sasa.QualityTools.CodeAnalysis.FxCopIntegrator.Views.ErrorReportWindow"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:vsx.ui="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.0"
                     Title="FxCop Integrator Error Report"
                     WindowStartupLocation="CenterScreen"
                     MinHeight="550" Height="550" MinWidth="500" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" TextWrapping="Wrap" Margin="10">
            <Bold>
                FxCop Integrator has encountered a problem and can't continue processing the current operation.
                I'm sorry for the inconvenience.
            </Bold>
        </TextBlock>
        <TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="10">
            To help me diagnose the cause of this problem and improve this extension, please send a bug report.
            <LineBreak/>
            <LineBreak/>
            Thank you for your cooperation.
        </TextBlock>
        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,0" HorizontalAlignment="Right">
            <Button Command="{Binding HelpCommand}" ToolTip="How to send bug report?" Margin="1">
                <Image Source="pack://application:,,,/Sasa.QualityTools.CodeAnalysis.FxCopIntegrator;component/Resources/Help.png"/>
            </Button>
            <Button Command="{Binding CopyErrorInfoCommand}" ToolTip="Copy error information to clipboard." Margin="1">
                <Image Source="pack://application:,,,/Sasa.QualityTools.CodeAnalysis.FxCopIntegrator;component/Resources/CopyErrorInfoToClipboard.png"/>
            </Button>
            <Button Command="{Binding SendBugReportCommand}" ToolTip="Open web page to send bug report." Margin="1">
                <Image Source="pack://application:,,,/Sasa.QualityTools.CodeAnalysis.FxCopIntegrator;component/Resources/Web.png"/>
            </Button>
        </StackPanel>
        <Border Grid.Row="3" BorderBrush="DarkGray" BorderThickness="2" Margin="10,0">
            <ScrollViewer>
                <TextBlock Text="{Binding ErrorInfo}" TextWrapping="Wrap" Background="White" Padding="5"/>
            </ScrollViewer>
        </Border>
        <StackPanel Grid.Row="4" Orientation="Horizontal" Margin="10" HorizontalAlignment="Right">
            <Button Command="{Binding CloseCommand}" Width="80">Close</Button>
        </StackPanel>
    </Grid>
</vsx.ui:DialogWindow>
